package com.mybatis.mapper;

import com.mybatis.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    List<User> selectUsers();

    User findUserById(@Param("id") int i);

    int addUser(User user);

    int updateUser(User user);

    List<User> pageSelect(Map<String, Integer> map);

    int batchInsert(List<User> users);

    int batchUpdate(List<User> users);

    int batchDelete(List<Integer> ids);

    List<User> activeFindUsers(User user);
}
